package com.taotao.feign;

import com.taotao.common.core.domain.Result;
import com.taotao.search.response.ProductSkuResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @className: RemoteEsService
 * @author: ZhangYuQi
 * @date: 2024/12/19 下午5:26
 * @Version: 1.0
 * @description:
 */

@FeignClient(value = "taotao-search")
public interface SearchFeignService {
    /**
     * @Author ZhangYuQi
     * @Description 上传至es中
     * @Date 下午8:10 2024/12/19
     * @Param [products]
     * @return
     */
    @PostMapping("/saveProduct")
    public Result saveProduct(@RequestBody List<ProductSkuResponse> products);
}
